package com.xiaoxing.zhinenghuacangku_liaocheng.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xiaoxing.zhinenghuacangku_liaocheng.mvp.contract.LiaoCheng_TuiKuFanHuiLieBiaoContract;
import com.xiaoxing.zhinenghuacangku_liaocheng.mvp.model.LiaoCheng_TuiKuFanHuiLieBiaoModel;


@Module
public class LiaoCheng_TuiKuFanHuiLieBiaoModule {
    private LiaoCheng_TuiKuFanHuiLieBiaoContract.View view;

    /**
     * 构建LiaoCheng_TuiKuFanHuiLieBiaoModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public LiaoCheng_TuiKuFanHuiLieBiaoModule(LiaoCheng_TuiKuFanHuiLieBiaoContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    LiaoCheng_TuiKuFanHuiLieBiaoContract.View provideLiaoCheng_TuiKuFanHuiLieBiaoView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    LiaoCheng_TuiKuFanHuiLieBiaoContract.Model provideLiaoCheng_TuiKuFanHuiLieBiaoModel(LiaoCheng_TuiKuFanHuiLieBiaoModel model) {
        return model;
    }
}